<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateNewsRepliesTable extends Migration
{
    //提交
    public function up()
    {
        Schema::create('news_replies', function (Blueprint $table) {
            $table->increments('id');
            $table->timestamps();
            $table->text('data')->comment('图文消息数据');
            $table->unsignedBigInteger('role_id')->comment('规则编号');
        });
    }

    //回滚
    public function down()
    {
        Schema::dropIfExists('news_replies');
    }
}
